package com.zhongyouyun.admin.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: shenyi
 * @Date: 2022-12-09
 * @Description: 
 */

@Accessors(chain = true)
@ApiModel(value="DisplayMainModel对象", description="")
@Data
@TableName("z_display_main")
public class DisplayMainModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "展示url")
    @TableField("show_url")
    private String showUrl;

    @ApiModelProperty(value = "跳转url")
    @TableField("jump_url")
    private String jumpUrl;

    @ApiModelProperty(value = "状态（0为关闭，1为开启）")
    @TableField("state")
    private Integer state;


}